/**
 *
 *
 * 
 *
 * 
 */

package io.dbw.modules.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.dbw.modules.business.entity.SysUserEntity;
import io.dbw.modules.business.entity.SysUserTokenEntity;

import java.util.Set;

/**
 * shiro相关接口
 *
 * 
 */
public interface ShiroService  extends IService<SysUserTokenEntity> {
    /**
     * 获取用户权限列表
     */
    Set<String> getUserPermissions(Long userId );

    SysUserTokenEntity queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     */
    SysUserEntity queryUser(Long userId);
}
